package com.example.kakaotalk.datas;

import java.text.SimpleDateFormat;
import java.util.Locale;

import android.net.Uri;

public class Message extends ChatRoomItem {

	private Uri mImageContentUri;
	private String mMessage;
	private String mWriter;

	public Message(String writer) {
		super(ChatRoomItem.TYPE_RECIVE);
		mWriter = writer;
	}
	
	public void setMessage(String msg){
		mMessage = msg;
	}
	
	public void setImageUri(Uri uri){
		mImageContentUri = uri;
	}

	public String getMessage() {
		return mMessage;
	}
	
	public String getWriter() {
		return mWriter;
	}
	
	public String getDateTimeToString() {
		SimpleDateFormat formatter = new SimpleDateFormat ( "a HH:mm", Locale.KOREA );
		return formatter.format(mDate);
	}
}
